package com.ruoyi.repn.domain.params;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author cpf
 * @date 2024/2/21 15:03
 * @description  预支付请求参数
 */
public class WXPrePayParams {


    @NotNull(message = "商品订单号不能为空！")
    private String outTradeNo;

    @NotNull(message = "订单描述信息不能为空！")
    private String description;

    /**
     * 单位为分
     */
    @NotNull(message = "总金额不能为空！")
    private BigDecimal totalPrice;


    @NotNull(message = "openId不能为空！")
    private String openId;


    @Override
    public String toString() {
        return "WXPrePayParams{" +
                "outTradeNo='" + outTradeNo + '\'' +
                ", description='" + description + '\'' +
                ", totalPrice=" + totalPrice +
                ", openId='" + openId + '\'' +
                '}';
    }

    public String getOutTradeNo() {
        return outTradeNo;
    }

    public void setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }
}


